<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="my-editor-md">
     <textarea id="my-text" name="my-text" style="display:none;" class="markdown-textarea"
               ></textarea>
    <!-- 注意：name属性的值-->
    <textarea id="text" name="text" style="display:none;" ></textarea>
</div>
<script type="text/javascript">
    $(function() {
        editormd("my-editor-md", {//注意1：这里的就是上面的DIV的id属性值
            wid  : "90%",
            height  : 640,
            syncScrolling : "single",
            pa   : "/admin/editormd/lib/",//注意2：你的路径
            saveHTMLToTextarea : true,//注意3：这个配置，方便post提交表单
            /**上传图片相关配置如下*/
            imageUpload: true,
            imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"], //图片上传格式
            imageUploadURL: "/admin/attach/uploadfile",
            onload: function (obj) { //上传成功之后的回调
            }
        });
    });
    </script>

<script src="/admin/editormd/src/editormd.js"></script>


<script src="/admin/plugins/md/js/jquery.scrollto.js"></script>
<script src="/admin/plugins/md/js/pagedown.js"></script>
<script src="/admin/plugins/md/js/pagedown-extra.js"></script>
<script src="/admin/plugins/md/js/diff.js"></script>
<script src="/admin/plugins/md/js/md.js"></script>
<script src="//cdn.bootcss.com/multi-select/0.9.12/js/jquery.multi-select.min.js"></script>
<script src="//cdn.bootcss.com/select2/3.4.8/select2.min.js"></script>
<script src="//cdn.bootcss.com/jquery-toggles/2.0.4/toggles.min.js"></script>
<script src="/admin/js/article.js"></script>
</body>

</html>